<?php
/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace TencentCloud\Cwp\V20180228\Models;
use TencentCloud\Common\AbstractModel;

/**
 * CreateMalwareWhiteList request structure.
 *
 * @method integer getMode() Obtain Allowlist mode. 0: MD5 allowlist; 1: customization
 * @method void setMode(integer $Mode) Set Allowlist mode. 0: MD5 allowlist; 1: customization
 * @method array getQuuidList() Obtain QUUID list
 * @method void setQuuidList(array $QuuidList) Set QUUID list
 * @method integer getIsGlobal() Obtain Whether applies all hosts. 0: no; 1: yes
 * @method void setIsGlobal(integer $IsGlobal) Set Whether applies all hosts. 0: no; 1: yes
 * @method integer getMatchType() Obtain Matching pattern; 0 for exact match, 1 for fuzzy match (deprecated).
 * @method void setMatchType(integer $MatchType) Set Matching pattern; 0 for exact match, 1 for fuzzy match (deprecated).
 * @method array getFileName() Obtain File Name (regular expression); up to 200 characters in length
 * @method void setFileName(array $FileName) Set File Name (regular expression); up to 200 characters in length
 * @method array getFileDirectory() Obtain File Directory (regular expression); up to 200 characters in length, content base64 encoded.
 * @method void setFileDirectory(array $FileDirectory) Set File Directory (regular expression); up to 200 characters in length, content base64 encoded.
 * @method array getFileExtension() Obtain File Suffix; Up to 200 characters in length, content base64 escaped (deprecated)
 * @method void setFileExtension(array $FileExtension) Set File Suffix; Up to 200 characters in length, content base64 escaped (deprecated)
 * @method array getMd5List() Obtain MD5 list
 * @method void setMd5List(array $Md5List) Set MD5 list
 * @method integer getEventId() Obtain Trojan event ID
 * @method void setEventId(integer $EventId) Set Trojan event ID
 * @method integer getIsHandleHistoryEvents() Obtain 
 * @method void setIsHandleHistoryEvents(integer $IsHandleHistoryEvents) Set 
 */
class CreateMalwareWhiteListRequest extends AbstractModel
{
    /**
     * @var integer Allowlist mode. 0: MD5 allowlist; 1: customization
     */
    public $Mode;

    /**
     * @var array QUUID list
     */
    public $QuuidList;

    /**
     * @var integer Whether applies all hosts. 0: no; 1: yes
     */
    public $IsGlobal;

    /**
     * @var integer Matching pattern; 0 for exact match, 1 for fuzzy match (deprecated).
     */
    public $MatchType;

    /**
     * @var array File Name (regular expression); up to 200 characters in length
     */
    public $FileName;

    /**
     * @var array File Directory (regular expression); up to 200 characters in length, content base64 encoded.
     */
    public $FileDirectory;

    /**
     * @var array File Suffix; Up to 200 characters in length, content base64 escaped (deprecated)
     */
    public $FileExtension;

    /**
     * @var array MD5 list
     */
    public $Md5List;

    /**
     * @var integer Trojan event ID
     */
    public $EventId;

    /**
     * @var integer 
     */
    public $IsHandleHistoryEvents;

    /**
     * @param integer $Mode Allowlist mode. 0: MD5 allowlist; 1: customization
     * @param array $QuuidList QUUID list
     * @param integer $IsGlobal Whether applies all hosts. 0: no; 1: yes
     * @param integer $MatchType Matching pattern; 0 for exact match, 1 for fuzzy match (deprecated).
     * @param array $FileName File Name (regular expression); up to 200 characters in length
     * @param array $FileDirectory File Directory (regular expression); up to 200 characters in length, content base64 encoded.
     * @param array $FileExtension File Suffix; Up to 200 characters in length, content base64 escaped (deprecated)
     * @param array $Md5List MD5 list
     * @param integer $EventId Trojan event ID
     * @param integer $IsHandleHistoryEvents 
     */
    function __construct()
    {

    }

    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("Mode",$param) and $param["Mode"] !== null) {
            $this->Mode = $param["Mode"];
        }

        if (array_key_exists("QuuidList",$param) and $param["QuuidList"] !== null) {
            $this->QuuidList = $param["QuuidList"];
        }

        if (array_key_exists("IsGlobal",$param) and $param["IsGlobal"] !== null) {
            $this->IsGlobal = $param["IsGlobal"];
        }

        if (array_key_exists("MatchType",$param) and $param["MatchType"] !== null) {
            $this->MatchType = $param["MatchType"];
        }

        if (array_key_exists("FileName",$param) and $param["FileName"] !== null) {
            $this->FileName = $param["FileName"];
        }

        if (array_key_exists("FileDirectory",$param) and $param["FileDirectory"] !== null) {
            $this->FileDirectory = $param["FileDirectory"];
        }

        if (array_key_exists("FileExtension",$param) and $param["FileExtension"] !== null) {
            $this->FileExtension = $param["FileExtension"];
        }

        if (array_key_exists("Md5List",$param) and $param["Md5List"] !== null) {
            $this->Md5List = $param["Md5List"];
        }

        if (array_key_exists("EventId",$param) and $param["EventId"] !== null) {
            $this->EventId = $param["EventId"];
        }

        if (array_key_exists("IsHandleHistoryEvents",$param) and $param["IsHandleHistoryEvents"] !== null) {
            $this->IsHandleHistoryEvents = $param["IsHandleHistoryEvents"];
        }
    }
}
